<!DOCTYPE html>
<style>
    .cell { display: table-cell; }
    .cell:nth-last-child(even) { -webkit-transform: rotate(180deg); }
</style>
<body>
    <div class="cell">crbug.com/604664: Tests passes if it doesn't crash.</div>
    <div id="div" class="cell"></div>
</body>
<script>
    if (window.testRunner)
        testRunner.dumpAsText();
    var block = document.createElement('div'); 
    document.body.offsetTop; 
    block.appendChild(document.getElementById("div")); 
</script>
